<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%@ page import="org.vectrics.recruiter.job.Job" %>
<%@ page import="org.vectrics.provider.*" %>
<%@ page import="org.apache.log4j.Logger" %>



<%@page import="org.vectrics.hibernate.ThreadProperties"%><vectrics:errors/>

<%
	String userId = request.getParameter("userId");
	String jobAgentId = request.getParameter("jobAgentId");
	String userFullName = CoreServiceLocator.getPersonService().findPersonById(new Long(userId)).getName();
	String domainId= ThreadProperties.getDomain().getId().toString();
	
	String locationCode1 = null;
	String locationCode2 = null;
	String locationCode3 = null;
	
	String functionCode1 = null;
	String functionCode2 = null;
	String functionCode3 = null;
%>



<html:form action="/profile/summary/agent/save" method="POST" focus="">
	<html:hidden property="jobId"/>
	<table>
		<tr>
			<td valign="TOP">
				<table width="600" cellpadding="4" cellspacing="1">
					<tr>
						<td class="formBg1" valign="top">
							<font class="formLabelClass">Name</font>
							<vectrics:errors property="name"/>
						</td>
						<td class="formBg1" valign="top">
							<html:text property="name" styleClass="formEditClass" maxlength="80"/>
						</td>
					</tr>
				
					<tr>
						<td class="formBg2" valign="top">
							<font class="formLabelClass">Search Words</font>
							<vectrics:errors property="searchWords"/>
						</td>
						<td class="formBg2" valign="top">
							<html:text property="searchWords" styleClass="formEditClass" maxlength="20"/>
						</td>
					</tr>

					<tr>
						<td class="formBg1" valign="top">
							<font class="formLabelClass">Location</font>
							<vectrics:errors property="location1"/>
						</td>
						<td class="formBg1" valign="top">
							<vectrics:locationCombo property="locationCode1" styleClass="formComboClass" selected="<%=locationCode1%>" domainId="<%=domainId%>"  /><br>
							<vectrics:locationCombo property="locationCode2" styleClass="formComboClass" selected="<%=locationCode2%>" domainId="<%=domainId%>"  /><br>
							<vectrics:locationCombo property="locationCode3" styleClass="formComboClass" selected="<%=locationCode3%>" domainId="<%=domainId%>"  />
						</td>
					</tr>
					<tr>
						<td class="formBg2" valign="top">
							<font class="formLabelClass">Job Function</font>
						</td>
						<td class="formBg2" valign="top">
							<vectrics:jobFunctionCombo property="functionCode1" styleClass="formComboClass" selected="<%=functionCode1%>"/><br>
							<vectrics:jobFunctionCombo property="functionCode2" styleClass="formComboClass" selected="<%=functionCode2%>"/><br>
							<vectrics:jobFunctionCombo property="functionCode3" styleClass="formComboClass" selected="<%=functionCode3%>"/>
						</td>
					</tr>
					
					<tr>
						<td valign="TOP" align="left"></td>
						<td valign="TOP" align="left">
							<vectrics:formButton name="submit" code="public.button.ok" phraseCode="button.ok"/>
							&nbsp;
							<vectrics:formButton name="cancel" code="public.button.cancel" phraseCode="button.cancel"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>